// JavaScript Document

//清除iCenter中的内容，移除右边浮动层
function cleariCenter(){
	$('#iCenter').html('');
	$('#div_float').remove();
}

//创建框架
function CreatFrame(page){
	cleariCenter();
	var src=page+'.php';
	switch(page) {
    case "licheng":src = 'tj.php?querytab=0';break;
    case "YouHao":src = 'tj.php?querytab=1';break;
    case "FeiYong":src = 'tj.php?querytab=2';break;
    case "KaoQin":src = 'tj.php?querytab=3';break;
    case "XiangMuCL":src = 'tj.php?querytab=4';break;
    case "KeHuBF":src = 'tj.php?querytab=5';break;
    case "DuanXinFS":src = 'tj.php?querytab=6';break;
    case "GaoJingXX":src = 'tj.php?querytab=7';break;
}

	//if(page=="group" || page =="version")

	$('#iCenter').html('<iframe id="right_iframe" src="'+src+'" frameborder="0" style="text-align:center"></iframe>');
	autoFrame();//创建框架后调整框架的宽度高度
}

CreatFrame('licheng');